/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mygameframework.sprite.state;

import com.mygameframework.sprite.Sprite;
import com.mygameframework.states.IState;

/**
 *
 * @author bill
 */
public class CommonState implements IState<Sprite> {

    @Override
    public void enter(Sprite entity) {
//        System.out.println("[commonstate]:"+this);
        entity.getAnimation(this.getClass()).start();//动画重置
    }

    @Override
    public void execute(Sprite entity, long elapsedTime) {
    }

    @Override
    public void exit(Sprite entity) {
//        entity.getAnimation(this.getClass()).reset();//动画重置
    }
    
}
